import { defineStore } from "pinia";
import { useMerchantBaseStore } from "./merchant-base";

export const useMerchantStore = defineStore("merchant", () => {
  const merchantStore = useMerchantBaseStore();
  return {
    getMerchant: merchantStore.getMerchant,
    getMerchants: merchantStore.getMerchants,
    deleteMerchant: merchantStore.deleteMerchant,
    saveMerchant: merchantStore.saveMerchant,
    getCategory: merchantStore.getCategory,
    getCategories: merchantStore.getCategories,
    deleteCategory: merchantStore.deleteCategory,
    saveCategory: merchantStore.saveCategory,
  };
});
